package cn.wolfcode.service;

import cn.wolfcode.domain.Employee;
import cn.wolfcode.qo.EmplyeeQueryObject;
import com.github.pagehelper.PageInfo;
import org.apache.poi.ss.usermodel.Workbook;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

public interface EmployeeService {
    void delete(Long id);

    void save(Employee employee, Long[] ids);

    Employee selectById(Long id);

    List<Employee> selectAll();

    void update(Employee employee, Long[] ids);

    PageInfo<Employee> query(EmplyeeQueryObject qo);

    Employee login(String username, String password);

    Employee selectByPassword(String oldPassword,Long id);

    void setPassword(Long id, String newPassword);

    void bathcDelete(Long[] ids);

    Employee selectByName(String name);

    Workbook exproXls ();

    void imporXls(MultipartFile file) throws IOException;


    //根据橘角色编码查询员工的方法
    List<Employee> selectByRoleSn(String... sns);

}
